//

// user.js
import axios from '../utils/axios'//二次封装 axios

//获取用户信息
export function getUserInfo() {
  return axios.get('/user/info');
}


export function EditUserInfo(params) {
  return axios.put('/user/info', params);
}

//登入
export function login(params) {
  return axios.post('/user/login', params);
}

//退出
export function logout() {
  return axios.post('/user/logout')
}

//注册
export function register(params) {
  return axios.post('/user/register', params);
}

